package com.bean;

/**
 * 库存
 * @author Administrator
 *
 */
public class Stock {
    private Integer stockId;

    private Integer materialId;

    private Double quantity;

    private String createTime;

    private Integer createById;
    
    private Integer state;//状态码  0为待入库  1为已经入库
    
    
    private Material material;
    private User createBy;
    

    
    public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Override
	public String toString() {
		return "Stock [stockId=" + stockId + ", materialId=" + materialId
				+ ", quantity=" + quantity + ", createTime=" + createTime
				+ ", createById=" + createById + ", material=" + material
				+ ", createBy=" + createBy + ", getMaterial()=" + getMaterial()
				+ ", getCreateBy()=" + getCreateBy() + ", getStockId()="
				+ getStockId() + ", getMaterialId()=" + getMaterialId()
				+ ", getQuantity()=" + getQuantity() + ", getCreateTime()="
				+ getCreateTime() + ", getCreateById()=" + getCreateById()
				+ ", getClass()=" + getClass() + ", hashCode()=" + hashCode()
				+ ", toString()=" + super.toString() + "]";
	}

	public Material getMaterial() {
		return material;
	}

	public void setMaterial(Material material) {
		this.material = material;
	}

	public User getCreateBy() {
		return createBy;
	}

	public void setCreateBy(User createBy) {
		this.createBy = createBy;
	}

	public Integer getStockId() {
        return stockId;
    }

    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    public Integer getMaterialId() {
        return materialId;
    }

    public void setMaterialId(Integer materialId) {
        this.materialId = materialId;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateById() {
        return createById;
    }

    public void setCreateById(Integer createById) {
        this.createById = createById;
    }
}